package dao.mysql;

import com.sun.org.apache.bcel.internal.generic.NEW;

import dao.DAOfactory;
import dao.EmployeeDAO;
import dao.LeaveTypeDAO;
import dao.LedgerDAO;
import dao.OvertimeDAO;
import dao.PublicHolidayDAO;
import dao.LeaveDAO;

	public class DAOFactoryImpl extends DAOfactory {
		private EmployeeDAO EmployeeDAO = new EmployeeDAOImpl();
		private LeaveTypeDAO LeaveTypeDAO = new LeaveTypeDAOImpl();
		private OvertimeDAO OvertimeDAO = new OvertimeDAOImpl();
		private LedgerDAO LedgerDAO = new LedgerDAOImpl();
		private PublicHolidayDAO PublicHolidayDAO = new PublicHolidayDAOImpl();
	    public EmployeeDAO getEmployeeDAO() {
	        return EmployeeDAO;
	    }
	    public LeaveTypeDAO getLeaveTypeDAO() {
	        return LeaveTypeDAO;
	    }
	    public LedgerDAO getLedgerDAO() {
	        return LedgerDAO;
	    }
	    public PublicHolidayDAO getPublicHolidayDAO() {
	        return PublicHolidayDAO;
	    }

	    private LeaveDAO leaveDAO = new LeaveDAOImpl();
		public LeaveDAO getLeaveDAO()
		{
			return leaveDAO;
		}
		@Override
		public OvertimeDAO getOvertimeDAO() {
			// TODO Auto-generated method stub
			return OvertimeDAO;
		}
		
		
		
}
